<%@ include file="/common/taglibs.jsp"%>
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/common/extjs.jsp"%>
<script type="text/javascript" >
Ext.onReady(function(){
/**
 发送消息
*/
function sendOneMessage(){
  var win = new Ext.Window({
			title : '发送消息',
			id : 'sendMessageWindow',
            iconCls:'form-edit-icon',
			width: 400,
            height:300,
            modal: true,
			resizable:false,
            closeAction : 'close',
            closable:true,
            plain : true,
            //弹出模态窗体
			buttonAlign:"center",
			html:"<iframe name='sendMessageIframe' height='100%' width='100%' src='" +appConfig.contPath + "/system/ext/sendMessage.jsp" + "' frameborder=0 scrolling=no  ></iframe>"
		});
		win.show();

};
 function closeOpenWindow(){
 	 Ext.getCmp("sendMessageWindow").close();
 } 
	var tab = new Ext.TabPanel({
// 		width:400,
        activeTab: 0,
        frame:true,
        tbar: [{
        		iconCls:'note-edit',
            	text: '发送消息',
            	handler : sendOneMessage
            	}], 
        defaults:{autoHeight: true},
        items:[{ 
	            title: '通　 知(<font color="red">${currentUsermsgCommCount}</font>)',
	            layout:'fit',
	            items:[{
	            xtype: 'grouptabpanel',
	            tabPosition:'left',
	    		tabWidth: 80,
	    		split:true,
	            height: 300,
	            width:550,
	            minSize: 175,
	            maxSize: 1280,
	    		activeGroup: 0 ,
	    		items: [{    			
	    			mainItem: 0,
	    			items: [{
		                title: '今天',
		                tabTip: '今天发来的消息',
						html: "<iframe name='contentfirstTab'  marginheight='0' align='left' src='/"+appConfig.appName+"/system/ext/systemMessage.jsp?flag=1' marginwidth='0' frameborder='0' width='100%' height='100%'  scrolling='no' id='contentfirstTab' ></iframe>"
	            	}]
            	},{    			
	    			mainItem: 0,
	    			items: [{	    			
		                title: '昨天',
		                tabTip: '昨天发来的消息',
						html: "<iframe name='contentfirstTab'  marginheight='0' align='left' src='/"+appConfig.appName+"/system/ext/systemMessage.jsp?flag=2' marginwidth='0' frameborder='0' width='100%' height='100%'  scrolling='no' id='contentfirstTab' ></iframe>"
	            	}]
            	},{    			
	    			mainItem: 0,
	    			items: [{	    			
		                title: '更早',
		                tabTip: '更早发来的消息',
						html:"<iframe name='contentfirstTab'  marginheight='0' align='left' src='/"+appConfig.appName+"/system/ext/systemMessage.jsp?flag=3' marginwidth='0' frameborder='0' width='100%' height='100%'  scrolling='no' id='contentfirstTab' ></iframe>"
	            	}]
            	}]
            }]},
            {   
                title: '系统消息(<font color="red">${currentUsermsgSysCount}</font>)',
            	html:"<iframe name='contentfirst3Tab'  marginheight='0' align='left' src='/"+appConfig.appName+"/system/ext/systemMessageNew.jsp' marginwidth='0' frameborder='0' width='100%' height='300'  scrolling='no' id='content3firstTab' ></iframe>"           
            }
        ] 	
	}); 	
 	var viewport = new Ext.Viewport({
 	    layout: 'fit',
 	    items: [tab]
 	    });    		
});						
</script>
</head>
<body>

</body>	